package cc.telecomdigital.tdstock.trading;

import android.content.Context;
import android.widget.TextView;
import cc.telecomdigital.tdstock.R;
import cc.telecomdigital.tdstock.trading.widget.AppDialogOKCancel;

public class TradeConfirmOnViewHoldDialog extends AppDialogOKCancel
{

	public TradeConfirmOnViewHoldDialog(Context iContext)
	{
		super(iContext, R.layout.trade_viewhold_confirm);
	}

	public void SetTextContent2(String iContent)
	{
		TextView textViewObj;

		textViewObj = (TextView) findViewById(R.id.trade_viewhold_confirmContent2);
		iContent = iContent.replace("\\n", "\n");		
		textViewObj.setText(iContent);
	}	
	
	public void SetTextContent3(String iContent, int iColor)
	{
		TextView textViewObj;

		textViewObj = (TextView) findViewById(R.id.trade_viewhold_confirmContent3);
		iContent = iContent.replace("\\n", "\n");		
		textViewObj.setText(iContent);
		textViewObj.setTextColor(getContext().getResources().getColor(iColor));
	}

	public void SetTextContent4(String iContent)
	{
		TextView textViewObj;

		textViewObj = (TextView) findViewById(R.id.trade_viewhold_confirmContent4);
		iContent = iContent.replace("\\n", "\n");		
		textViewObj.setText(iContent);
	}	
	
}
